﻿using CarAppDto.Rule.RuleConfigDtos;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDto.Rule.RuleMappingDtos
{
    public class RepRuleConfigAndVINValidator : AbstractValidator<RepRuleConfigAndVIN>
    {
        /// <summary>
        /// 校验规则写到校验类的构造方法中
        /// </summary>
        public RepRuleConfigAndVINValidator()
        {
            RuleFor(x => x.RuleId).NotEmpty();
            RuleFor(x => x.VIN).NotEmpty();
        }
    }
    public class RepRuleConfigAndVIN
    {
        /// <summary>
        /// 规则ID
        /// </summary>

        public string? RuleId { get; set; }

        public string? VIN { get; set; }
    }
}
